// config/config.ts

import { defineConfig } from 'umi';
import routes from './routes';

export default defineConfig({
  routes: routes,
  links: [{ rel: 'icon', href: 'favicon.png' }],
  proxy: {
    '/v1': {
      target: 'http://139.198.154.153:8081/',
      changeOrigin: true,
      // pathRewrite: { '^/api/': '' },
    },
  },
  // publicPath: '/k8s/',
  // history: { type: 'hash' },
});
